package com.hyl.domain.activity.service.trial.thread;

import com.hyl.domain.activity.adapter.repository.IActivityRepository;
import com.hyl.domain.activity.model.valobj.SkuVO;

import java.util.concurrent.Callable;

/**
 * @author hyl
 * @description
 * @create 2025-06-16 15:53
 */
public class QuerySkuVOFromDBThreadTask implements Callable<SkuVO> {
    private final String goodsId;

    public QuerySkuVOFromDBThreadTask(String goodsId, IActivityRepository repository) {
        this.goodsId = goodsId;
        this.repository = repository;
    }

    private final IActivityRepository repository;


    @Override
    public SkuVO call() throws Exception {
        return repository.querySkuByGoodsId(goodsId);
    }
}
